Timm Bäder [Sat, 29 Oct 2016 17:27:22 +0000 (19:27 +0200)]
separator: Convert to indirect rendering
Timm Bäder [Sun, 30 Oct 2016 18:29:41 +0000 (19:29 +0100)]
widget: Remove damage-event
Timm Bäder [Sun, 30 Oct 2016 18:23:36 +0000 (19:23 +0100)]
widget: remove show-help
Timm Bäder [Sun, 30 Oct 2016 16:01:19 +0000 (17:01 +0100)]
widget: Remove app-paintable
Emmanuele Bassi [Mon, 31 Oct 2016 16:30:10 +0000 (16:30 +0000)]
build: Clean the uninstalled introspection GIR files
We need to remove them from the build when cleaning them.
Additionally, this automatically adds them to the Git ignore file.
Emmanuele Bassi [Mon, 31 Oct 2016 16:28:09 +0000 (16:28 +0000)]
gsk: Use GskRenderer.create_cairo_surface()
GskRenderNode should ask the renderer for a Cairo surface when creating
a drawing context.
Emmanuele Bassi [Mon, 31 Oct 2016 16:26:50 +0000 (16:26 +0000)]
gsk: Add internal Renderer.create_cairo_surface()
We need an overridable entry point for GskRenderer to create Cairo
surfaces.
Implementations of GskRenderer can override create_cairo_surface() to
create efficient surfaces, possibly with zero copies involved, depending
on the GDK backend.
Juan Pablo Ugarte [Fri, 28 Oct 2016 20:30:46 +0000 (17:30 -0300)]
gdk/Makefile.am: fixed glsl resources extra dist files.
Use the same wildcard partern used to generate gdk.gresource.xml to include files in EXTRA_DIST var.
Timm Bäder [Sat, 29 Oct 2016 20:05:18 +0000 (22:05 +0200)]
button: show() the image in gtk_button_new_from_icon_name
Timm Bäder [Sun, 30 Oct 2016 14:36:26 +0000 (15:36 +0100)]
tests: Don't add wigets to a GtkInvisible
It's not a GtkContainer.
Timm Bäder [Sat, 29 Oct 2016 14:35:16 +0000 (16:35 +0200)]
box: Use measure() to measure child sizes
Timm Bäder [Sat, 29 Oct 2016 14:16:49 +0000 (16:16 +0200)]
box: Mark out params of _query_packing as (optional)
Timm Bäder [Sat, 29 Oct 2016 13:51:17 +0000 (15:51 +0200)]
sidebarrow: Use GtkButton:icon-name
Timm Bäder [Sat, 29 Oct 2016 13:50:53 +0000 (15:50 +0200)]
box: Remove unused private API
Timm Bäder [Sat, 29 Oct 2016 08:16:03 +0000 (10:16 +0200)]
dialog: Let GtkButton manage its style classes
A button created using gtk_button_new_with_label will already have the
text-button style class applied.
Timm Bäder [Sat, 29 Oct 2016 08:07:15 +0000 (10:07 +0200)]
filechooser: Use GtkButton's icon-name property
Rico Tzschichholz [Sun, 30 Oct 2016 06:58:05 +0000 (07:58 +0100)]
gsk: Fix return annotation for gsk_render_node_get_name()
Piotr Drąg [Sat, 29 Oct 2016 19:32:56 +0000 (21:32 +0200)]
Update POTFILES.in
Benjamin Otte [Sat, 29 Oct 2016 16:08:11 +0000 (18:08 +0200)]
API: rendernode: Add gsk_render_node_get_name()
Make the debug string available to public API.
Benjamin Otte [Sat, 29 Oct 2016 16:06:24 +0000 (18:06 +0200)]
display: Actually initialize variables
Forgot to add this in
d249e77bcb19c3981f750556809b48d406a027eb.
Lapo Calamandrei [Sat, 29 Oct 2016 15:34:49 +0000 (17:34 +0200)]
Adwaita: add more padding to popover menus...
...since Timm removed that from the actual code.
Lapo Calamandrei [Sat, 29 Oct 2016 15:33:26 +0000 (17:33 +0200)]
Revert "Adwaita: add more padding to popovers"
Padding should be added back to menu popover only...
This reverts commit
670948586afbd3957dd9dbe28b3a5426270cd901.
Lapo Calamandrei [Sat, 29 Oct 2016 15:18:58 +0000 (17:18 +0200)]
Adwaita: no rounded corners for solid-csd.
Lapo Calamandrei [Sat, 29 Oct 2016 15:14:07 +0000 (17:14 +0200)]
Adwaita: add more padding to popovers
...since Timm stole some.
Benjamin Otte [Sat, 29 Oct 2016 02:48:29 +0000 (04:48 +0200)]
API: widget: Remove gtk_widget_is_composited()
We don't need to clutter our API with functions that are easily
available elsewhere and effectively unused.
Benjamin Otte [Sat, 29 Oct 2016 02:37:20 +0000 (04:37 +0200)]
API: screen: Remove gdk_screen_is_composited()
Switch code to use gdk_display_is_composited() instead.
The new code also doesn't use a vfunc to query the property but rather
requires the backend to call set_composited()/set_rgba() to change the
value.
Benjamin Otte [Sat, 29 Oct 2016 01:25:06 +0000 (03:25 +0200)]
API: widget: Remove GtkWidget::composited-changed signal
Nobody uses it.
If you need the functionality, listen to display changes on
your widget and then connect to the display's notify::composited.
Benjamin Otte [Fri, 28 Oct 2016 23:06:05 +0000 (01:06 +0200)]
inspector: Use the new APIs when displaying information
Benjamin Otte [Fri, 28 Oct 2016 21:38:16 +0000 (23:38 +0200)]
API: gdk: Add gdk_display_is_rgba() and gdk_display_is_composited()
Also add properties for those two properties.
The first property is equivalent to checking if an RGBA visual exists,
the 2nd is equivalent to gdk_screen_is_composited().
Timm Bäder [Fri, 28 Oct 2016 17:32:50 +0000 (19:32 +0200)]
frame: Get the render node from the gadget
So we get a proper css background etc. applied.
Timm Bäder [Fri, 28 Oct 2016 16:10:22 +0000 (18:10 +0200)]
Fix clip of more windowed widgets
Timm Bäder [Fri, 28 Oct 2016 15:55:13 +0000 (17:55 +0200)]
Fix clip position of windowed widgets
Marek Černocký [Fri, 28 Oct 2016 15:07:54 +0000 (17:07 +0200)]
Updated Czech translation
Timm Bäder [Fri, 28 Oct 2016 14:29:51 +0000 (16:29 +0200)]
modelbutton: Convert to indirect rendering
Timm Bäder [Fri, 28 Oct 2016 12:31:43 +0000 (14:31 +0200)]
cssgadget: Move gadgets to their allocated position
Timm Bäder [Fri, 28 Oct 2016 11:42:11 +0000 (13:42 +0200)]
switch: Port to indirect rendering
Timm Bäder [Thu, 27 Oct 2016 12:04:44 +0000 (14:04 +0200)]
testframe: Fix css element name
Timm Bäder [Thu, 27 Oct 2016 07:54:42 +0000 (09:54 +0200)]
frame: Use measure() to measure label size
Timm Bäder [Thu, 27 Oct 2016 07:38:45 +0000 (09:38 +0200)]
stack: Use measure() to measure child widget
Simpler code this way \o/
Timm Bäder [Tue, 25 Oct 2016 14:52:27 +0000 (16:52 +0200)]
csswidgetnode: Fix container condition for GtkInvisible
... which is a toplevel, but not a container.
Timm Bäder [Mon, 24 Oct 2016 18:08:58 +0000 (20:08 +0200)]
menusectionbox: Remove margins
So the theme can add the spacing on its own.
Timm Bäder [Mon, 24 Oct 2016 18:03:27 +0000 (20:03 +0200)]
inspector: make use of GtkButton's icon-name property
Timm Bäder [Mon, 24 Oct 2016 09:45:21 +0000 (11:45 +0200)]
toggletoolbutton: Remove unneeded deprecation markers
Matthias Clasen [Fri, 28 Oct 2016 10:47:26 +0000 (06:47 -0400)]
Revert "Convert GtkEntry to indirect rendering"
This reverts commit
8e29222d95449278d66f3e067d7dc1dcb7f6dcae.
This needs more work - spin buttons need to be converted at
the same time, and we should make sure that text still appears.
Chun-wei Fan [Fri, 14 Oct 2016 11:04:49 +0000 (19:04 +0800)]
GDK-Win32/4.0: Improve GL on Windows
Update the GDKGL implementation:
-Allow legacy contexts to be created.
-Use finer-grained attributes to ask for a pixel format when possible,
which also adds support for anti-aliasing
In fact the changes here are required for GTKGL to work properly on
Windows for 4.x.
Note that creation of gles contexts is not done here, as the system does
not support such contexts directly on Windows, but only through means such
as ANGLE, which is a totally different issue here.
https://bugzilla.gnome.org/show_bug.cgi?id=773528
Chun-wei Fan [Fri, 28 Oct 2016 05:42:55 +0000 (13:42 +0800)]
GDK/Win32: Deal with leftovers from removal of GdkWindow items
We need to further remove items for the removal of:
-GdkWindow->depth (commit
6cc94ff)
-gdk_window_get_visual()/GdkWindow->visual (commit
f420dc7)
-GDK visual query APIs (commit
45c0379)
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Benjamin Otte [Fri, 28 Oct 2016 02:42:24 +0000 (04:42 +0200)]
API: gdk: Remove visual querying APIs
They are unused, only work on the default display anyway and visuals are
on their way out.
Benjamin Otte [Thu, 27 Oct 2016 21:27:49 +0000 (23:27 +0200)]
API: gdk: Remove gdk_window_get_visual()
With it, remove window->visual.
Benjamin Otte [Thu, 27 Oct 2016 14:24:42 +0000 (16:24 +0200)]
gdk: Remove GdkWindow.depth member variable
It's unused.
Benjamin Otte [Thu, 27 Oct 2016 13:38:41 +0000 (15:38 +0200)]
window: Add a GdkWindow:display property
... and make it an explicit property of the window struct instead of
looking it up in the visual.
Matthias Clasen [Fri, 28 Oct 2016 00:46:08 +0000 (20:46 -0400)]
Convert GtkEntry to indirect rendering
Warning! This unveils some positioning issue with the secondary icon.
Matthias Clasen [Fri, 28 Oct 2016 00:27:34 +0000 (20:27 -0400)]
Convert GtkIcon to indirect rendering
Sébastien Wilmet [Thu, 27 Oct 2016 10:20:46 +0000 (12:20 +0200)]
docs: more logical GtkEntry function order in the section file
Trivial commit.
Group related functions together. Most of the functions had already the
set -> get order, so keep that order.
Sébastien Wilmet [Thu, 27 Oct 2016 10:05:37 +0000 (12:05 +0200)]
docs: consistent get/set function order for GtkScrolledWindow
Trivial commit.
For all the other GtkScrolledWindow functions, the order was get -> set.
Except for 3 functions, so fix that.
Chun-wei Fan [Thu, 27 Oct 2016 06:27:21 +0000 (14:27 +0800)]
MSVC builds: Simplify "install" property sheet
Use a for loop to loop through the icon sizes to copy them.
Rico Tzschichholz [Thu, 27 Oct 2016 06:16:57 +0000 (08:16 +0200)]
gtk+-4.0.pc: Make sure to add requirements for Gsk (e.g. graphene-1.0)
Chun-wei Fan [Thu, 27 Oct 2016 06:13:42 +0000 (14:13 +0800)]
MSVC builds: Make the GSK project functional
Add the needed custom build steps to generate the GResource and
enumeration sources that is needed for the build, and make sure that the
build is able to find the Graphene headers and lib.
Also add the necessary CFLAGS needed for building GSK.
Chun-wei Fan [Thu, 27 Oct 2016 06:11:14 +0000 (14:11 +0800)]
MSVC builds: Fix previous patch on .sln file
We need to change the filenames of the .vcxproj project files as well,
oops.
Rico Tzschichholz [Thu, 27 Oct 2016 06:12:20 +0000 (08:12 +0200)]
gtk+-4.0.pc: Drop rogue refererene to non-existing gdk-4.0.pc
Chun-wei Fan [Thu, 27 Oct 2016 04:27:04 +0000 (12:27 +0800)]
build/win32/vs12/gtk4-gen-srcs.props: Fix XML reference URL
Visual Studio can be picky about this, causing projects not to load.
Chun-wei Fan [Thu, 27 Oct 2016 04:22:53 +0000 (12:22 +0800)]
Visual Studio projects: Rename tools to become gtk4-*
This follows what happens in the autotools builds.
Also fix some project namespaces and the install project where there is a typo
in a project dep, which may cause a problem during the build.
Benjamin Otte [Thu, 27 Oct 2016 04:37:02 +0000 (06:37 +0200)]
x11: Remove code that temporarily unsets the background
We don't set a background anymore, so we don't need to temporarily unset
it.
Benjamin Otte [Thu, 27 Oct 2016 04:14:01 +0000 (06:14 +0200)]
inspector: Don't connect to nonexisting signal
The GdkScreen::size-changed signal was removed a while ago.
And because signal changes don't trip the compiler, there are always
leftovers...
Benjamin Otte [Wed, 26 Oct 2016 03:29:07 +0000 (05:29 +0200)]
gtk: Add back infrastructure for GTK_DEBUG=updates
Includes the ability to turn on updates in the inspector. Animations are
now run via a tick function which allows us to neatly overlay a
semi-transparent red rectangle and fade it out over time.
It also probably enables way more, but somebody with more UI neatness
than me needs to figure out what it eanbles first...
Benjamin Otte [Tue, 25 Oct 2016 05:25:59 +0000 (07:25 +0200)]
treeview: Use gtk_widget_queue_draw()
Benjamin Otte [Sat, 22 Oct 2016 02:59:15 +0000 (04:59 +0200)]
textview: Use gtk_widget_draw()
Benjamin Otte [Fri, 21 Oct 2016 03:00:58 +0000 (05:00 +0200)]
widget: Use gtk_widget_queue_draw()
Benjamin Otte [Thu, 20 Oct 2016 16:46:27 +0000 (18:46 +0200)]
scrolledwindow: Use gtk_widget_queue_draw()
Benjamin Otte [Thu, 20 Oct 2016 15:33:33 +0000 (17:33 +0200)]
paned: Use gtk_widget_queue_draw()
Benjamin Otte [Wed, 19 Oct 2016 20:46:57 +0000 (22:46 +0200)]
menu: Remove unneeded invalidations
The gadgets should take care of those themselves
Benjamin Otte [Wed, 19 Oct 2016 20:46:47 +0000 (22:46 +0200)]
notebook: Use gtk_widget_queue_draw()
Benjamin Otte [Wed, 19 Oct 2016 20:33:26 +0000 (22:33 +0200)]
gtk: Remove gdk_window_invalidate() from docs
And replace its mentions with gtk_widget_queue_draw().
Benjamin Otte [Wed, 19 Oct 2016 20:27:43 +0000 (22:27 +0200)]
toolitemgroup: Use gtk_widget_queue_draw()
Benjamin Otte [Wed, 19 Oct 2016 20:17:50 +0000 (22:17 +0200)]
iconview: Use gtk_widget_queue_draw()
Benjamin Otte [Wed, 19 Oct 2016 20:05:20 +0000 (22:05 +0200)]
expander: Remove unnecessary redraws
Benjamin Otte [Wed, 19 Oct 2016 16:18:31 +0000 (18:18 +0200)]
drawingarea: Clarify docs
Don't use gdk_window_invalidate(), use gtk_widget_queue_draw().
Benjamin Otte [Tue, 18 Oct 2016 17:43:32 +0000 (19:43 +0200)]
widget: Redo how gtk_widget_queue_draw() works
Before, we would immediately invalidate the GdkWindow of the widget, now
we call the parent's GtkWidgetClass.queue_draw_child() function.
This allows the parent to track redraw queueing of children.
By default GtkWidgetClass.queue_draw_child() will again chain up to its
parent while respecting the GdkWindow hierarchy for clipping.
GtkWindow is then the only widget actually invalidating the GdkWindow.
This essentially moves redraw queueing from GDK to GTK.
Benjamin Otte [Tue, 18 Oct 2016 17:42:19 +0000 (19:42 +0200)]
widget: Inline function into only caller
... and remove all the checks that are not needed in this case.
Benjamin Otte [Wed, 26 Oct 2016 22:07:01 +0000 (00:07 +0200)]
gdk: Remove gdk_window_set_invalidate_handler()
It's not used anymore.
Benjamin Otte [Wed, 26 Oct 2016 22:06:36 +0000 (00:06 +0200)]
gdk: Add deprecation guards around deprecated function
Benjamin Otte [Wed, 26 Oct 2016 21:46:51 +0000 (23:46 +0200)]
pixelcache: Remove
It's now unused.
Benjamin Otte [Wed, 26 Oct 2016 21:45:57 +0000 (23:45 +0200)]
textview: Get rid of the pixel cache
Benjamin Otte [Wed, 26 Oct 2016 18:51:25 +0000 (20:51 +0200)]
treeview: Remove the pixel cache usage
Matthias Clasen [Thu, 27 Oct 2016 00:58:07 +0000 (20:58 -0400)]
Spacing fixes for builtin dialogs
Replace border-width and padding by margins, in most places.
Matthias Clasen [Wed, 26 Oct 2016 19:11:18 +0000 (15:11 -0400)]
More gtk-demo spacing fixes
Matthias Clasen [Wed, 26 Oct 2016 19:03:04 +0000 (15:03 -0400)]
gtk-demo: Start to fix up the spacing
Replace some cases of lost border-width with margins.
Matthias Clasen [Wed, 26 Oct 2016 18:42:11 +0000 (14:42 -0400)]
Fix widget-factory appearance, a bit
Use margins instead of border-width, for now.
Matthias Clasen [Wed, 26 Oct 2016 18:28:17 +0000 (14:28 -0400)]
color chooser: Fix a problem with show-editor=TRUE
For some reason we end up allocating the colorplane widget
before it is realized, and then never initialize the surface.
Fix this by explicitly doing it on realize.
https://bugzilla.gnome.org/show_bug.cgi?id=773474
Benjamin Otte [Wed, 26 Oct 2016 15:59:33 +0000 (17:59 +0200)]
applicationwindow: Fix issues with measure vfunc transition
Benjamin Otte [Wed, 26 Oct 2016 15:25:30 +0000 (17:25 +0200)]
viewport: Remove pixelcache
With the rework for GSK and queueing of redraws pending, the pixel cache
just gets in the way. So we remove it everywhere.
Emmanuele Bassi [Wed, 26 Oct 2016 15:10:35 +0000 (16:10 +0100)]
build: Update CLEANFILES
We use nodist for gir and typelib files, because we expect them to be
rebuilt.
Emmanuele Bassi [Wed, 26 Oct 2016 14:58:23 +0000 (15:58 +0100)]
build: Beautify the GIR post-processing
Use AM_V_GEN to silence the command line output.
Emmanuele Bassi [Wed, 26 Oct 2016 14:47:29 +0000 (15:47 +0100)]
gsk: Add check on GL_MAX_TEXTURE_SIZE
We should check (once) what's the maximum GL texture size and then use
that size to check when we create any GL texture, to avoid errors.
Matthias Clasen [Wed, 26 Oct 2016 14:45:04 +0000 (10:45 -0400)]
Fix the build
Copy-paste error.
Matthias Clasen [Wed, 26 Oct 2016 10:21:39 +0000 (06:21 -0400)]
GdkWindow: Use the seat to enumerate devices
GdkDeviceManager is going away.
Matthias Clasen [Wed, 26 Oct 2016 00:38:38 +0000 (20:38 -0400)]
quartz: Stop using gdk_device_manager_list_devices
The function has been deprecated.
Matthias Clasen [Wed, 26 Oct 2016 00:38:05 +0000 (20:38 -0400)]
x11: Stop using gdk_device_manager_list_devices
The function has been deprecated.
Matthias Clasen [Wed, 26 Oct 2016 00:37:35 +0000 (20:37 -0400)]
broadway: Stop using gdk_device_manager_list_devices
The function is deprecated.
Alexander Larsson [Mon, 17 Oct 2016 13:07:57 +0000 (15:07 +0200)]
Make gdk.la and gsk.la a noninst helper library
This merged gtk, gdk and gsk into one library, making it possible to
have internal private APIs between gtk them, as well as producing more
efficient code.
https://bugzilla.gnome.org/show_bug.cgi?id=773100
Benjamin Otte [Tue, 18 Oct 2016 01:49:09 +0000 (03:49 +0200)]
widget: Improve early exit checks on queue_draw()
(1) We don't need to check for realized when we check for mapped right
below.
(2) Empty regions don't need to be drawn.